<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 63 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style63p180{position:absolute;left:232px;top:275px}

 /* Position Styles */
 .ts63p0{position:absolute;left:106px;top:97px;}
 .ts63p1{position:absolute;left:352px;top:97px;}
 .ts63p3{position:absolute;left:672px;top:97px;}
 .ts63p7{position:absolute;left:106px;top:113px;}
 .ts63p8{position:absolute;left:706px;top:1026px;}
 .ts63p9{position:absolute;left:331px;top:1044px;}
 .ts63p13{position:absolute;left:106px;top:146px;}
 .ts63p14{position:absolute;left:154px;top:146px;}
 .ts63p16{position:absolute;left:106px;top:164px;}
 .ts63p17{position:absolute;left:106px;top:183px;}
 .ts63p18{position:absolute;left:106px;top:201px;}
 .ts63p20{position:absolute;left:106px;top:220px;}
 .ts63p22{position:absolute;left:106px;top:238px;}
 .ts63p23{position:absolute;left:380px;top:255px;}
 .ts63p25{position:absolute;left:604px;top:507px;}
 .ts63p26{position:absolute;left:106px;top:522px;}
 .ts63p27{position:absolute;left:106px;top:541px;}
 .ts63p28{position:absolute;left:154px;top:541px;}
 .ts63p29{position:absolute;left:106px;top:559px;}
 .ts63p30{position:absolute;left:106px;top:577px;}
 .ts63p34{position:absolute;left:106px;top:596px;}
 .ts63p35{position:absolute;left:106px;top:614px;}
 .ts63p36{position:absolute;left:106px;top:633px;}
 .ts63p38{position:absolute;left:106px;top:651px;}
 .ts63p39{position:absolute;left:106px;top:669px;}
 .ts63p40{position:absolute;left:106px;top:688px;}
 .ts63p42{position:absolute;left:106px;top:706px;}
 .ts63p43{position:absolute;left:106px;top:725px;}
 .ts63p44{position:absolute;left:154px;top:725px;}
 .ts63p46{position:absolute;left:106px;top:743px;}
 .ts63p47{position:absolute;left:106px;top:761px;}
 .ts63p48{position:absolute;left:106px;top:780px;}
 .ts63p50{position:absolute;left:106px;top:798px;}
 .ts63p52{position:absolute;left:106px;top:817px;}
 .ts63p53{position:absolute;left:106px;top:836px;}
 .ts63p55{position:absolute;left:106px;top:854px;}
 .ts63p56{position:absolute;left:106px;top:872px;}
 .ts63p58{position:absolute;left:106px;top:890px;}
 .ts63p60{position:absolute;left:106px;top:908px;}
 .ts63p62{position:absolute;left:106px;top:927px;}
 .ts63p63{position:absolute;left:106px;top:945px;}
 .ts63p65{position:absolute;left:106px;top:964px;}

 /* Font Styles */
 .ft0p63{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p63{font-weight:normal;}
 .ft2p63{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p63{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p63{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p63{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p63{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft7p63{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground63{position:absolute;left:97px;top:834px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index62.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;63 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index64.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground63><img src="./background63.png" width="633" height="221" border="0" alt=""></div>
<div class=style63p180><img src="./image63_180.png" width="372" height="247" border="0" alt=""></DIV>
<div class=ts63p0><span class="ft0p63"> </span></div>
<div class=ts63p1><span class="ft0p63">Gravitybox Schedule Primer<span class="ft1p63"> </span></span></div>
<div class=ts63p3><span class="ft0p63">Page 61&nbsp; </span></div>
<div class=ts63p7><span class="ft2p63"> </span></div>
<div class=ts63p8><span class="ft3p63"> </span></div>
<div class=ts63p9><span class="ft4p63">1998&#45;2004 Gravitybox Software LLC<span class="ft3p63"> </span></span></div>
<div class=ts63p13><span class="ft5p63"> </span></div>
<div class=ts63p14><span class="ft5p63">I think that this demonstrates quite well how to build a simple database program </span></div>
<div class=ts63p16><span class="ft5p63">with the schedule. It does however only show the loading and saving of appointments. </span></div>
<div class=ts63p17><span class="ft5p63">Perhaps you wish to configure rooms, categories, providers, etc. We have seen how to </span></div>
<div class=ts63p18><span class="ft5p63">load room and categories, but how do we configure and add them? We will start by </span></div>
<div class=ts63p20><span class="ft5p63">creating a simple Room configuration screen. </span></div>
<div class=ts63p22><span class="ft5p63"> </span></div>
<div class=ts63p23><span class="ft6p63">Figure 5.1 </span></div>
<div class=ts63p25><span class="ft5p63"> </span></div>
<div class=ts63p26><span class="ft5p63"> </span></div>
<div class=ts63p27><span class="ft5p63"> </span></div>
<div class=ts63p28><span class="ft5p63">We start by creating the screen. I have chosen to use standard controls like list </span></div>
<div class=ts63p29><span class="ft5p63">boxes and buttons because this is the lowest common denominator for learning and </span></div>
<div class=ts63p30><span class="ft5p63">also ensures that everyone can create the screen, without any other third&#45;party </span></div>
<div class=ts63p34><span class="ft5p63">components. The setup screen will have a listbox and five configuration buttons, in </span></div>
<div class=ts63p35><span class="ft5p63">addition to the Ok and Cancel buttons. The configuration buttons will consist of an add, </span></div>
<div class=ts63p36><span class="ft5p63">rename, and remove button, as well as the up and down buttons. The first three do </span></div>
<div class=ts63p38><span class="ft5p63">exactly what they are named. The up and down buttons allow the user to specify the </span></div>
<div class=ts63p39><span class="ft5p63">order in which the rooms are displayed on the schedule, by reordering previously added </span></div>
<div class=ts63p40><span class="ft5p63">rooms. </span></div>
<div class=ts63p42><span class="ft5p63"> </span></div>
<div class=ts63p43><span class="ft5p63"> </span></div>
<div class=ts63p44><span class="ft5p63">We will store the database information in a temporary collection while the </span></div>
<div class=ts63p46><span class="ft5p63">configuration screen is visible. This is done so that we may make changes and they will </span></div>
<div class=ts63p47><span class="ft5p63">not be saved until we wish for them to be saved. The program contains the &#147;CItemCol&#148; </span></div>
<div class=ts63p48><span class="ft5p63">and &#147;CItemEl&#148; class definitions. The first one will be used to create a collection of </span></div>
<div class=ts63p50><span class="ft5p63">objects that will store the necessary information for each room. </span></div>
<div class=ts63p52><span class="ft5p63"> </span></div>
<div class=ts63p53><span class="ft7p63">Option Explicit </span></div>
<div class=ts63p55><span class="ft7p63"> </span></div>
<div class=ts63p56><span class="ft7p63">Dim Rooms As New CItemCol </span></div>
<div class=ts63p58><span class="ft7p63">Dim Changed As Boolean </span></div>
<div class=ts63p60><span class="ft7p63">Dim arrDeleted() As Long<span class="ft5p63"> </span></span></div>
<div class=ts63p62><span class="ft5p63"> </span></div>
<div class=ts63p63><span class="ft5p63">Also notice in the form&#146;s declaration section there is a &#147;Changed&#148; variable. This stores </span></div>
<div class=ts63p65><span class="ft5p63">the dirty state of the screen. It is used to determine if the screen needs to be saved </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
